class CreateArticlesWebsitesinfsJoin < ActiveRecord::Migration
  def self.up
    create_table :articles_websitesinfs, :id => false do |t|
      t.column :websitesinf_id, :integer, :null => false    
      t.column :article_id, :integer, :null => false

    end
    
    execute "alter table articles_websitesinfs add primary key (websitesinf_id,article_id)"
  end

  def self.down
      drop_table :articles_websitesinfs
  end
end
